﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类INSPECTION_LINE_STYLE
     ///</summary>
     public class INSPECTION_LINE_STYLE
     {
         private int __ID=0 ;
         private int? __LINE_ID=null ;
         private int? __WAITE_LINEID=null ;
         private int? __ISXNLINE=null ;
         private string __ALLOW_DD_LINE=string.Empty ;
         private string __REMARK=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public INSPECTION_LINE_STYLE()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("LINE_ID",false);
             this.__Changed.Add("WAITE_LINEID",false);
             this.__Changed.Add("ISXNLINE",false);
             this.__Changed.Add("ALLOW_DD_LINE",false);
             this.__Changed.Add("REMARK",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__LINE_ID =null;
             this.__WAITE_LINEID =null;
             this.__ISXNLINE =null;
             this.__ALLOW_DD_LINE =string.Empty;
             this.__REMARK =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["LINE_ID"] = false;
             this.__Changed["WAITE_LINEID"] = false;
             this.__Changed["ISXNLINE"] = false;
             this.__Changed["ALLOW_DD_LINE"] = false;
             this.__Changed["REMARK"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[LINE_ID]的数据
         /// </summary>
         public int? LINE_ID
         {
              set{ __LINE_ID = value; __Changed["LINE_ID"] = true;}
              get{return __LINE_ID;}
         }
         /// <summary>
         ///设置或获取类中的[WAITE_LINEID]的数据
         /// </summary>
         public int? WAITE_LINEID
         {
              set{ __WAITE_LINEID = value; __Changed["WAITE_LINEID"] = true;}
              get{return __WAITE_LINEID;}
         }
         /// <summary>
         ///设置或获取类中的[ISXNLINE]的数据
         /// </summary>
         public int? ISXNLINE
         {
              set{ __ISXNLINE = value; __Changed["ISXNLINE"] = true;}
              get{return __ISXNLINE;}
         }
         /// <summary>
         ///设置或获取类中的[ALLOW_DD_LINE]的数据
         /// </summary>
         public string ALLOW_DD_LINE
         {
              set{ __ALLOW_DD_LINE = value.Replace("'","’"); __Changed["ALLOW_DD_LINE"] = true;}
              get{return __ALLOW_DD_LINE;}
         }
         /// <summary>
         ///设置或获取类中的[REMARK]的数据
         /// </summary>
         public string REMARK
         {
              set{ __REMARK = value.Replace("'","’"); __Changed["REMARK"] = true;}
              get{return __REMARK;}
         }
    }
}
